package com.school.manager.enums;

import com.school.manager.common.Constants;
import com.school.manager.interfaces.IResponseEnum;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * description：请求返沪枚举类
 * date：2021/2/52:58 下午
 */

@AllArgsConstructor
@Getter
public enum ResponseEnum implements IResponseEnum {

    /**
     * 成功
     */
    SUCCESS(Constants.SUCCESS_CODE, Constants.SUCCESS_MESSAGE),

    /**
     * 失败
     */
    ERROR(Constants.ERROR_CODE, Constants.ERROR_MESSAGE);

    private final int code;

    private final String message;
}
